package com.supinfo.suptracking.dao;

import com.supinfo.suptracking.entity.Car;
import com.supinfo.suptracking.entity.User;
import com.supinfo.suptracking.entity.Zone;
import java.util.Date;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Fabien, Jérémy, Ludovic, Brice
 */

@Local
public interface CarDao {
    
    void addCar(Car car);
    void delCar(Car car);
    void delCar(Long id);
    void updateCar(Car car);
    
    List<Car> getAllCar();
    List<Car> getCarByBrand(String brand);
    List<Car> getCarByInitialEntryIntoService(Date date);
    List<Car> getAllCarByUser(User user);
    Car getCarByZone(Zone zone);
    Car getCarById(Long id);
}
